package cn.edu.qzuie.artist.module.td.controller.admin.activity.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.edu.qzuie.artist.framework.excel.core.annotations.DictFormat;
import cn.edu.qzuie.artist.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 活动 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ActivityRespVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("编号")
    private Long id;

    @Schema(description = "结束时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "2025-06-09")
    @ExcelProperty("结束时间")
    private LocalDateTime endTime;

    @Schema(description = "开始时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "2025-03-09")
    @ExcelProperty("开始时间")
    private LocalDateTime startTime;

    @Schema(description = "活动名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "毕业展")
    @ExcelProperty("活动名称")
    private String activityName;

    @Schema(description = "人数", example = "0")
    @ExcelProperty("人数")
    private Integer maxNumber;

    @Schema(description = "评选规则")
    @ExcelProperty("评选规则")
    private String rules;

    @Schema(description = "参与要求")
    @ExcelProperty("参与要求")
    private String participationRules;

    @Schema(description = "奖励方法")
    @ExcelProperty("奖励方法")
    private String rewardRules;

    @Schema(description = "活动状态：开始，暂停，结束", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "活动状态：开始，暂停，结束", converter = DictConvert.class)
    @DictFormat("activity_state") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer activityState;

    @Schema(description = "介绍")
    @ExcelProperty("介绍")
    private String description;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;


}